package br.com.tamagotchi.modelo;

import java.io.Serializable;

import br.com.tamagotchi.interfaces.IAtividade;

public class Brincar implements IAtividade, Serializable {

	private static final long serialVersionUID = -6574034492762506808L;

	@Override
	public synchronized void executarAtividade(int valor) {
		try {
			System.out.println("Brincando :)");
			Thread.sleep(valor * 1000);
			System.out.println("Cansei!");
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
